
from django.shortcuts import render_to_response
from django.http.request import HttpRequest

from myblog.mamahaoDabases import  connectionDB
from myblog.mamahaoJOB.mamahaoJboContentSqlXML import get_sql

import logging
logger = logging.getLogger('log')
path="mamahaoSerrviceUserSql.xml"

def index(request=HttpRequest):
    contxt={}
    contxt["userList"]=[]
    contxt["items"] = ["语文","数学","英语",]
    sql=get_sql("User", "Query", "user_account", path)
    listther = connectionDB.getmoreSql(sql)
    for i in range(len(listther)):
        contxt["userList"].append(listther[i][0])
    return  render_to_response('index.html',contxt)


